﻿html, body, div, a, ul, li, aside {
    margin: 0;
    padding: 0;
}

    div#wrapper {
        display: block;
        width: 960px;
    }

body {
    font-size: 1.4em;
    font-family: Arial, 'DejaVu Sans', 'Liberation Sans', Freesans, sans-serif;

    #wrapper {
        aside {
            margin-top: 10px;
            margin-left: 20px;
            width: 215px;

            .sidebar {
                list-style-type: none;
                border-radius: 10px;
                background: #d29bff; /* Old browsers */
                /* IE9 SVG, needs conditional override of 'filter' to 'none' */
                background: url();
                background: -moz-linear-gradient(top, #d29bff 0%, #8977ff 100%); /* FF3.6+ */
                background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d29bff), color-stop(100%,#8977ff)); /* Chrome,Safari4+ */
                background: -webkit-linear-gradient(top, #d29bff 0%,#8977ff 100%); /* Chrome10+,Safari5.1+ */
                background: -o-linear-gradient(top, #d29bff 0%,#8977ff 100%); /* Opera 11.10+ */
                background: -ms-linear-gradient(top, #d29bff 0%,#8977ff 100%); /* IE10+ */
                background: linear-gradient(to bottom, #d29bff 0%,#8977ff 100%); /* W3C */
                filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d29bff', endColorstr='#8977ff',GradientType=0 ); /* IE6-8 */
                padding-top: 5px;
                padding-bottom: 5px;

                li {
                    padding-left: 15px;
                    margin-left: 15px;
                    margin-right: 15px;
                    padding-right: 15px;
                    padding-bottom: 5px;
                    padding-top: 5px;
                    border-bottom: 1px solid #9d00ff;
                    position: relative;

                    &:not(:first-of-type) {
                        padding-top: 5px;
                    }

                    &:last-of-type {
                        border: none;
                    }

                    &:hover {
                        border: 1px solid #9d00ff;
                        border-radius: 5px;
                    }

                        &:hover ul {
                            display: block;
                            position: absolute;
                            width: 240px;
                            list-style-type: none;
                            text-align: right;
                            left: 190px;
                            top: 0px;
                            margin: 0;
                        }

                    a {
                        text-decoration: none;
                        color: black;
                    }

                    ul {
                        display: none;
                        background: #b5aaff; /* Old browsers */
                        /* IE9 SVG, needs conditional override of 'filter' to 'none' */
                        background: url();
                        background: -moz-linear-gradient(top, #b5aaff 0%, #b5aaff 100%); /* FF3.6+ */
                        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b5aaff), color-stop(100%,#b5aaff)); /* Chrome,Safari4+ */
                        background: -webkit-linear-gradient(top, #b5aaff 0%,#b5aaff 100%); /* Chrome10+,Safari5.1+ */
                        background: -o-linear-gradient(top, #b5aaff 0%,#b5aaff 100%); /* Opera 11.10+ */
                        background: -ms-linear-gradient(top, #b5aaff 0%,#b5aaff 100%); /* IE10+ */
                        background: linear-gradient(to bottom, #b5aaff 0%,#b5aaff 100%); /* W3C */
                        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b5aaff', endColorstr='#b5aaff',GradientType=0 ); /* IE6-8 */
                        border-radius: 10px;
                        width: 185px;
                        font-size: 0.8em;

                        li:first-of-type:before {
                            content: url(../images/arrow.png);
                            position: absolute;
                            left: -17px;
                        }

                        li {
                            margin-left: 20px;
                            text-align: center;
                            border-bottom: 1px solid #9d00ff;
                            display: block;
                            width: 180px;
                        }

                            li:last-of-type {
                                border: none;
                                margin-bottom: 5px;
                            }

                            li:first-of-type {
                                margin-top: 5px;
                            }

                            li:hover {
                                border: 1px solid #9d00ff;
                            }
                    }
                }
            }
        }
    }
}
